﻿using System;
using ProtoBuf;

namespace ToyChat
{
    /// <summary>
    /// This packet is used to request registration as a user
    /// </summary>
    [ProtoContract(Name = "UserRegistrationPacket")]
    public class UserRegistrationPacket
    {
        /// <summary>
        /// Gets or Sets the desired username
        /// </summary>
        [ProtoMember(1)]
        public string DesiredUsername { get; set; }
        
        /// <summary>
        /// Gets or Sets the desired password
        /// </summary>
        [ProtoMember(2)]
        public string DesiredPassword { get; set; }
        
        /// <summary>
        /// Gets or Sets the email adress of the new user
        /// </summary>
        [ProtoMember(3)]
        public string Email { get; set; }

        /// <summary>
        /// Gets or Sets the desired nickname of the user
        /// </summary>
        [ProtoMember(4)]
        public string DesiredNick { get; set; }
    }
}